package JavaSE.CODE.javaIO;

import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.ArrayList;

public class ObjectInputStreamDemo {
    public static void main(String[] args) throws Exception{
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("D:\\stu.bin"));
        //
        ArrayList<Student> arr =(ArrayList<Student>) ois.readObject();
        //
        ois.close();
        System.out.println(arr.toString());
    }
}
